import java.rmi.*;


public interface ServerSide extends Remote {
    // 定义允许远程调用的方法，第一个形参类型是Client
    void hello(Client client, String ctName, String saying, String mode) throws Exception;

    void register(String name,Client client) throws RemoteException;

    int getNumber() throws RemoteException;

    String getMessage() throws RemoteException;

    void setMessage(String message) throws RemoteException;

    void setStatus(boolean status)throws RemoteException;
}
